package com.jichangxiu.generator.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * GenRowVo:
 *
 * @author JiChangXiu
 * @create 2024-06-30 13:31:04
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Schema(description = "生成行表")
public class GenRowVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Schema(description = "ID")
    private String id;

    /**
     * 编码
     */
    @Schema(description = "编码")
    private String no;

    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 表描述
     */
    @Schema(description = "表描述")
    private String comment;

    /**
     * 分类ID
     */
    @Schema(description = "分类ID")
    private String categoryId;

    /**
     * 关联的子表
     */
    @Schema(description = "关联的子表")
    private String childRowId;

    /**
     * 关联的子表字段
     */
    @Schema(description = "关联的子表字段")
    private String childColumnId;

    /**
     * 包路径
     */
    @Schema(description = "包路径")
    private String pack;

    /**
     * 类名称
     */
    @Schema(description = "类名称")
    private String clazz;

    /**
     * 大写类名称
     */
    @Schema(description = "大写类名称")
    private String bigClazz;

    /**
     * 模块名
     */
    @Schema(description = "模块名")
    private String module;

    /**
     * 业务名
     */
    @Schema(description = "业务名")
    private String business;

    /**
     * 业务名
     */
    @Schema(description = "业务名")
    private String bigBusiness;

    /**
     * 作者
     */
    @Schema(description = "作者")
    private String author;

    /**
     * 功能名
     */
    @Schema(description = "功能名")
    private String ability;

    /**
     * 生成代码方式
     */
    @Schema(description = "生成代码方式")
    private String type;

    /**
     * 生成路径
     */
    @Schema(description = "生成路径")
    private String path;

    /**
     * 上级菜单
     */
    @Schema(description = "上级菜单")
    private String menuId;

    /**
     * 是否生成过
     */
    @Schema(description = "是否生成过")
    private Boolean generated;

    /**
     * 其它生成选项
     */
    @Schema(description = "其它生成选项")
    private String options;

    /**
     * 顺序
     */
    @Schema(description = "顺序")
    private BigDecimal sort;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 列集合
     */
    @Schema(description = "列集合")
    private List<GenColumnVo> genColumnVoList;

    /**
     * 主键列
     */
    @Schema(description = "主键列")
    private GenColumnVo primaryGenColumnVo;

    /**
     * 模板分类
     */
    @Schema(description = "模板分类")
    private GenCategoryVo genCategoryVo;

    /**
     * 模板列表
     */
    @Schema(description = "模板列表")
    private List<GenTemplateVo> genTemplateVoList;

    /**
     * 子表
     */
    @Schema(description = "子表")
    private GenRowVo childRowVo;

    /**
     * 子表字段
     */
    @Schema(description = "子表字段")
    private GenColumnVo childGenColumnVo;

}